/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.scaroo.injectedgallery.validators;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 *
 * @author alexandremazari
 */
@Documented
@Constraint(validatedBy = {})
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE })
@NotNull
@Pattern(regexp = "(0|0033|\\+33)[\\s-]*(\\d[\\s-]*){9}")
@Retention(RetentionPolicy.RUNTIME)
public @interface FrenchPhoneNumber {

    public abstract String message() default "{package.name.Email.message}";

    public abstract Class<?>[] groups() default {};



}